import { network } from '@/utils';
import { CouriersListParams, ChageStatusParams } from './data';

import { basic } from '../../../../../config/Apis';

export async function queryCouriersList(params: CouriersListParams) {
  return network.get(basic.staff_list, { params });
}

export async function operChangeStatus(params: ChageStatusParams) {
  return network.put(basic.staff_status, { data: params });
}

export async function operDelete(params: {id: number}) {
  return network.deleter(basic.staff, { params });
}

export async function operSetPwd(params: { id: number, password: string}) {
  return network.put(basic.staff_password, { data: params });
}
